<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title><?=$meet_one->data['name']?></title>
	<meta name="viewport" content="width=device-width, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no"/>
	<link rel="stylesheet" href="http://demo.open.weixin.qq.com/jssdk/css/style.css?ts=1420774989">
	<link rel="stylesheet" href="business/style/common.css">
	<script src="//res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
	<script src="business/js/jquery.js"></script>
	<script src="app/js/common.js"></script>

	<style>
		.Mbanner{width:100%;}
		.Mbanner img{width:100%;}
		.Mcontent{margin-top:20px;border-top:1px #E7E7E7 solid;width:100%;}
		.Mcontent li{width:100%;height:50px;background:#fff;border-bottom:1px #E7E7E7 solid;color:#797979;line-height:50px;}
		.img{padding:7px 16px;width:36px;height:36px;border-radius:18px;overflow:hidden;float:left;}
		.img img{width:36px;height:36px;border-radius:18px;}
		a{text-decoration:none;}
		.Mbtn{height:50px;line-height:50px;width:100%;color:#fff;font-size:100%;position:fixed;bottom:0px;text-align:center;}
		.Mdiv{width:100%;height:50px;}
	</style>
<body>
	<div class="Mbanner"><img src="<?=G_SITE_CDN?>/<?=$meet_one->data['图片log']?>" alt=""></div>
	<div class="Mcontent">

			<?php foreach($column as $k =>$v): ?>
			<?php
			 switch ($v['type']){
            case '讨论组':
               $url = $qunliao_url;
                break;
            case '会议视频':
               $url = $meet_shipin_url;
                break;
            case '会议资料':
               $url = $descript_url;
                break;
            case '报名':
               $url = "";
                break;
            default:
               // var_dump("no");
                break;
        }?>

				<?php if($v['type']=='讨论组'):?>
		<div class="creat_class_list_con" id="content">
			<a href=<?=$url?>&群id=<?=$qun_res['id']?>><li  style="margin-bottom: 16px;"><div id="" class="img"><img src="<?=G_SITE_CDN?>/<?=$v['ico']?>" alt=""></div><?=$v['title']?>
				<?php if($qun_res['未读条数']>0):?>
				<div  style="float:right; width:24px; height: 24px; line-height: 26px;; text-align: center; border-radius:100% ; font-size:80%; background:#FF0000; margin-right:16px; margin-top: 12px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;" ><?=$qun_res['未读条数']?></div>
				<?php endif;?>
			</li></a>
		</div>
			<?php elseif($v['type']!='讨论组' && $v['type']!='报名'):?>
				<a href="
				<?php if($v['url']):?>
				<?=$v['url']?>
				<?php else:?>
				<?=$url?>&column_id=<?=$v['id']?>
				<?php endif; ?>
				"><li><div class="img"><img src="<?=G_SITE_CDN?>/<?=$v['ico']?>" alt=""></div><?=$v['title']?></li></a>


		</ul>
		<?php elseif($v['type']=='报名'):?>

		<div class="Mdiv"></div>
		<a href="<?=$meet_reg_url?>"><div style="background-color: <?=$v['content']?>" class="Mbtn"><?=$v['title']?></div></a>
		</div>
	    <?php endif;?>
	<?php endforeach;?>
	</div>
</body>
</html>
<script src="business/resource/js/jquery-1.11.1.min.js"></script>
<script language="JavaScript">

	wx.config({
		debug: false,
		appId: '<?php echo $this->signPackage["appId"];?>',
		timestamp: <?php echo $this->signPackage["timestamp"];?>,
		nonceStr: '<?php echo $this->signPackage["nonceStr"];?>',
			signature: '<?php echo $this->signPackage["signature"];?>',
			jsApiList: [
		'onMenuShareAppMessage',
		'onMenuShareTimeline',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'onMenuShareQZone'
	]
	});

	title = "<?=$meet_one->data['name']?>";
	desc = "<?=$meet_one->data['name']?>";
	links = '';
	imgUrl = "<?= G_SITE_CDN ?>/<?=$meet_one->data['图片log']?>";
	weixinShare(title, desc, links, imgUrl);

	/*function 群列表(){
		$.post('<?=$quanzhou_qun?>',{'参数':'群列表','父id':'<?= $父id ?>'},function(data){
			json = eval(data);

			document.getElementById("content").innerHTML = "";
			var str ='';
			var 未读条数 ='';
			for(var i=0; i<json.length; i++)
			{
				if(json[i].未读条数>0)未读条数 = '<div  style="float:right; width:24px; height: 24px; line-height: 26px;; text-align: center; border-radius:100% ; font-size:80%; background:#FF0000; margin-right:16px; margin-top: 12px; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;" >'+json[i].未读条数+'</div>';
				// str+='<li><a href="<?=$群聊页面?>&群id='+json[i].id+'&父id=<?=$父id?>"><img src="business/style/meet003.png" alt=""><span><strong>'+json[i].群名称+'</strong></span></span>('+json[i].成员数+')</span>'+未读条数+'</a></li>';
				str+='<a href="<?=$qunliao_url?>&群id='+json[i].id+'&父id=<?=$父id?>"><li  style="margin-bottom: 16px;"><div id="" class="img"><img src="business/style/meet003.png" alt=""></div>会议线上讨论组'+未读条数+'</li></a>';
			}
			$(str).prependTo("#content");

		});

	}
	群列表();
	window.setInterval(群列表, 30000);*/
	
</script>
<?php require 'app/templates/common/foot.html'; ?>
